package com.huangjian;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

//启动类
@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker //添加对熔断的支持  启用断路器
public class HystrixOrderProvider {
    public static void main(String[] args) {
        SpringApplication.run(HystrixOrderProvider.class, args);
    }

}
